#include "serialdataitem.h"
#include "./serialdata.h"
SerialDataitem::SerialDataitem(QObject *parent) : QObject(parent)
{
    connect(SerialData::gestance(),SIGNAL(sigSendPotency(double ) ),this,SIGNAL(sigSendPotency(double ) ));
    connect(SerialData::gestance(),SIGNAL(sigSendStatus(int ) ),this,SIGNAL(sigSendStatus(int ) ));


}

SerialDataitem::~SerialDataitem()
{

}

bool SerialDataitem::initSatus()
{

    return SerialData::gestance()->initSerial();
}

void SerialDataitem::readCoPotency()
{
    return SerialData::gestance()->readCoPotency();
}
